"use strict"

const restaurantdb = require('../Models/RestaurantDB');

var restaurantDBObject = new restaurantdb();

function routeRestaurant(app){
    app.route('/restaurant')
         .get(restaurantDBObject.getAllRestaurant);
    app.route('/restaurant/one')
         .post(restaurantDBObject.findOne);
     app.route("/restaurant/typeSearch")
     .post(restaurantDBObject.searchType)
}

module.exports = {routeRestaurant};